{__NOLAYOUT__}
<layout name="layoutPC" />
<div class="container" data-module="<{$user_id}>">
  <div class="row" ng-controller="ProfileBaseController">
    <input type="hidden" id="userId" value="{{ userBase.user_id }}">
    <div id="hp-header" class="col-sm-8 col-sm-offset-2 ftsz-22">
        <div ng-switch="headShow" style="float:left">
            <img ng-switch-when="1" style="height: 82px;width: 82px;margin-right: 30px;" src="__UPLOAD__/{{userBase.image_url}}">
            <img ng-switch-when="2" style="height: 82px;width: 82px;margin-right: 30px;" src="__PUBLIC__/static/pc/img/head.jpg">
        </div>
        <span style="font-size: 30px;color: #363636;margin-right: 30px;line-height:3;">{{ userBase.user_name }}</span>
        <span ng-show="userBase.trust==2" class="tag-credit" style="font-size: 18px;margin-right: 20px;">信</span>
        <span class="tag-level-first" style="font-size: 18px;margin-right: 20px;">甲.V{{ userBase.level_j }}</span>
        <span class="tag-level-second" style="font-size: 18px;margin-right: 20px;">乙.V{{ userBase.level_y }}</span>
        <a href="javascript:void(0)" ng-click="getReportModal()">
          <span style="color: #999999;line-height: 33px;font-size: 15px;">举报</span>
        </a>
      <div ng-switch="hasFavored">
        <a href="javascript:void(0)" class="side-col"  style="right:85px;text-decoration: none;" ng-switch-when="1" ng-click="favUser()">
          <img style="right:100px;height:58px;width:56px" src="__PUBLIC__/static/pc/img/icon_fav.png">
          <br />
          <p>收藏</p>
        </a>
        <a href="javascript:void(0)" class="side-col"  style="right:85px;text-decoration: none;" ng-switch-when="2" ng-click="delFavUser()">
          <img style="right:100px;height:58px;width:56px" src="__PUBLIC__/static/pc/img/u14.png">
          <br />
          <p>取消收藏</p>
        </a>
        
      </div>
      <a href="<{:U('Message/sendorreceivemessagepc')}>/publisher_id/<{$user_id}>/publisher_name/{{ userBase.user_name }}" class="side-col"  style="right:15px;text-decoration: none;">
        <img style="right:100px;height:44px;width:44px" src="__PUBLIC__/static/pc/img/u16.png">
        <br />
        <p>留言</p>
      </a>
    </div>
    <div class="col-sm-8 col-sm-offset-2">
      <div class="line-box" style="margin-bottom: 60px;">
        <div class="line-box-title" style="left:100px">个人资料
        </div>
        <div class="information-display row" style="margin-top:45px">
          <div class="col-sm-3 title">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</div>
          <div class="col-sm-7 content">
            <span>{{ userBase.sexMeaning }}</span>
        </div>
        </div>
        <div class="information-display row">
          <div class="col-sm-3 title">出生年份</div>
          <div class="col-sm-9 content">{{ userBase.birthday }}年</div>
        </div>
        <div class="information-display row">
          <div class="col-sm-3 title">现居住地</div>
          <div class="col-sm-9 content">{{ userBase.address }}</div>
        </div>
        <div class="information-display row">
          <div class="col-sm-3 title">学历信息</div>
          <div class="col-sm-9 content">{{userBase.degreeMeaning}}</div>
        </div> 
        <div class="information-display row" ng-show="firstInfo.agent_j">
            <div class="col-sm-3 title">代表机构</div>
            <div class="col-sm-9 content">{{ firstInfo.agent_j }}</div>
          </div>
          <div class="information-display row" ng-show="firstInfo.agent_j_desc">
            <div class="col-sm-3 title">机构简介</div>
            <div class="col-sm-9 content">{{ firstInfo.agent_j_desc }}</div>
          </div>
        <div class="row" style="overflow:hidden;" ng-switch="userBase.resume_public">
          <div class="col-sm-6 col-sm-offset-3" style="margin-bottom:15px">
            <button class="btn-blue-line btn-lg btn-block" type="button" data-toggle="modal" data-target="#phoneModal">电话联系</button>
          </div>
          <!-- <button ng-switch-when="2" class="btn-blue-line btn-lg btn-block btn-homepage" style="margin-left:5%;margin-top:0" type="button" ng-click="publicToOne()">对TA公开信息</button>
          <button ng-switch-when="1" class="btn-blue-line btn-lg btn-block btn-homepage" style="margin-left:5%;margin-top:0" type="button" disabled="disabled">已公开信息</button> -->
        </div>
      </div>  
    </div>
    <div class="col-sm-8 col-sm-offset-2">
      <div class="line-box" style="margin-bottom: 60px;">
        <div class="line-box-title" style="left:100px">信任圈子
        </div>
        <div class="line-box-inner">
          <div class="trust-list">
            <div class="trust-member" ng-switch="trustShow">
              <div ng-switch-when="2" >
                <a href="<{:U('FetcherInfo/indexPC')}>?user_id={{ user.truster_id }}" ng-repeat="user in trustInfo.truster_arr">
                  <img src="__UPLOAD__/{{user.image_url}}">
                  <br />
                  <p style="text-align:center;">{{ user.user_name }}</p>
                </a>
              </div>
              <span ng-switch-when="1">还没有任何人信任你</span>
              <!-- <a href="javascript:void(0)">
                <img src="__PUBLIC__/static/pc/img/daiyu.png">
                <br />
                <span style="padding-left:5px;">林黛玉</span>
              </a> -->
            </div>
            <div class="trust-desc">
              <p>信任圈子通常为真实生活中互相了解的朋友，相信他的工作能力，为他点赞！能够起到互相推广的效果</p>
            </div>
            <div class="btn-like"  ng-switch="hasTrusted">
              <a href="javascript:void(0)" style="text-decoration:none" ng-switch-when="1" ng-click="trust()">
                <!-- <img src="__PUBLIC__/static/pc/img/u34.png"> -->
                <p>{{ getTrustNum() }}</p>
              </a>
              <a href="javascript:void(0)" style="text-decoration:none" ng-switch-when="2" ng-click="delTrust()">
                <!-- <img src="__PUBLIC__/static/pc/img/icon_trusted.png"> -->
                <p>{{ getTrustNum() }}</p>
              </a>
            </div>
          </div>
        </div>
      </div> 
    </div>
    <div class="col-sm-8 col-sm-offset-2">
      <div class="line-box">
        <div class="line-box-title" style="left:100px" ng-click="tablist('index')" ng-class="{'info-noactive':hash=='YF'}">
          <a href="javascript:void(0)" style="text-decoration:none;">甲方信息</a>
        </div>
        <div class="line-box-title" style="left:260px;" ng-click="tablist('YF')" ng-class="{'info-noactive':hash!='YF'}">
          <a href="javascript:void(0)" style="text-decoration:none;">乙方信息</a>
        </div>
        <div class="info-jiafang" ng-show="hash!='YF'">
          <div style="margin:0 70px 0 100px;border-bottom:solid 1px rgb(228,228,228);"></div>
          <div>
            <div class="information-display row">
              <div style="margin-top:45px;margin-left:115px;font-size:17px;color:#797979;">发布的活</div>
            </div>
            <div class="information-display-border"></div>
            <div ng-show="firstInfoShow" class="work-list" ng-repeat="mission in firstInfo.mission">
              <a href="<{:U('Task/indexPC')}>/mission/{{ mission.mission_id }}" style="text-decoration:none;display: block;overflow:hidden;">
                <p style="margin-left:100px;font-size:20px">
                  <span>{{ mission.mission_name }}</span>
                  <!-- <img src="__PUBLIC__/static/pc/img/u42.png" style="width:49px;height:26px;"> -->
                </p>
                <div style="overflow:hidden;">
                  <div class="work-first-line">
                    <p class="work-published">岗位需求</p>
                    <p class="work-published content">{{ mission.jobs }}</p>
                  </div>
                  <div class="work-first-line" style="width:45%;margin-left:5%;">
                    <p class="work-published right">薪酬范围</p>
                    <p class="work-published content">{{ mission.salary }}</p>
                  </div>
                </div>
                <div style="overflow:hidden;">
                  <div class="work-first-line">
                    <p class="work-published">工作时限</p>
                    <p class="work-published content">{{ mission.durationMeaning }}</p>
                  </div>
                  <div class="work-first-line" style="width:45%;margin-left:5%;">
                    <p class="work-published right">工作地点</p>
                    <p class="work-published content">{{ mission.location }}</p>
                  </div>
                </div>
              </a>
              <div class="information-display-border"></div>
            </div>
            <p ng-show="!firstInfoShow" class="no-info">还没有发布任何消息</p>
          </div>
        </div>
        <div class="info-yifang" ng-show="hash=='YF'">
          <button class="btn-blue-line btn-lg btn-block" id="thats-it" type="button" ng-click="getProject()">就要Ta了</button>
          <!-- <div class="information-display row" style="margin-bottom:0;margin:0 70px 0 100px">
            <div class="col-sm-3 title">薪资要求</div>
            <div class="col-sm-9 content">{{ secondInfo.salary }}</div>
          </div> -->
          <!-- <div class="information-display row" style="margin-bottom:0;margin:0 70px 0 100px">
            <div class="col-sm-3 title">代表机构</div>
            <div class="col-sm-9 content">范冰冰工作室</div>
          </div>
          <div class="information-display row" style="margin-bottom:0;margin:0 70px 0 100px">
            <div class="col-sm-3 title">结构简介</div>
            <div class="col-sm-9 content">很多很多</div>
          </div> -->
          <div class="information-display row" style="margin-bottom:0;margin:0 70px 0 100px">
            <div class="col-sm-3 title">接活岗位</div>
            <div class="col-sm-9 content">{{ secondInfo.jobs }}</div>
          </div>
          <div class="information-display row information-display-border">
            <div class="col-sm-3 title">自我介绍</div>
            <div class="col-sm-9 content" style="padding-bottom:10px;">{{ secondInfo.introduction }}</div>
          </div>
          <div ng-repeat="mission in secondInfo.experience">
            <div class="information-display row" style="margin-bottom:0;margin:0 70px 0 100px">
              <div class="col-sm-3 title">项目名称/公司</div>
              <div class="col-sm-9 content">{{ mission.project_name }}</div>
            </div>
            <div class="information-display row" style="margin-bottom:0;margin:0 70px 0 100px">
              <div class="col-sm-3 title">工作职责</div>
              <div class="col-sm-9 content">{{ mission.role }}</div>
            </div>
            <div class="information-display row" style="margin-bottom:0;margin:0 70px 0 100px">
              <div class="col-sm-3 title">作品链接</div>
              <div class="col-sm-9 content">
              <a href="{{ mission.url }}">{{ mission.url }}</a> 
              </div>
            </div>
            <div class="information-display row information-display-border" style="margin-bottom:0;margin:0 70px 0 100px">
              <div class="col-sm-3 title">附 件</div>
              <div class="col-sm-9 content" style="padding-bottom:10px;">
                <img ng-repeat="img in mission.attachment" src="__UPLOAD__/{{img.image_url}}" style="cursor: pointer" ng-click="showClearPic('__UPLOAD__/'+img.image_url)">
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 举报提示框 -->
    <div class="modal fade" id="reportModal" tabindex="-1" role="dialog" aria-labelledby="msgModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="msgModalLabel">{{ userBase.user_name }}</h4>
          </div>
          <div class="modal-body">
            <h4 class="text-tips">举报内容</h4>
            <textarea rows="4" id="reportContent" class="form-control" placeholder="150字以内"></textarea>
          </div>
          <div class="modal-footer center">
            <button type="button" ng-click="report()" class="btn btn-main">发送</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 电话联系提示框 -->
    <div class="modal fade" id="phoneModal" tabindex="-1" role="dialog" aria-labelledby="msgModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" >{{ userBase.user_name }}</h4>
                </div>
                <div class="modal-body">
                    <h3 class="text-tips">电话号码</h3>
                    <h3>{{phone}}</h3>
                </div>
            </div>
        </div>
    </div>
    <!--图片显示框-->
    <div class="modal fade" id="picModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" >附件</h4>
                </div>
                <div class="modal-body text-center">
                    <img id="clearPic" src="" style="width:300px;height: auto"/>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="selectModal" tabindex="-1" role="dialog" aria-labelledby="selectModalLabel" aria-hidden="true">
         <div class="modal-dialog">
             <div class="modal-content">
                 <div class="modal-header">
                     <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                     <div class="row modal-title" id="selectModalLabel">
                         <div class="col-xs-2 col-thin">
                             <img ng-src="__UPLOAD__/{{ userBase.image_url }}" width="50px" height="50px">
                         </div>
                         <div class="col-xs-7 col-profile-head">
                             <h4>{{ userBase.user_name }}</h4>
                             <div class="tag-group">
                                 <span class="tag-level-first">甲.V{{ userBase.level_j }}</span>
                                 <span class="tag-level-second">乙.V{{ userBase.level_y }}</span>
                             </div>
                         </div>
                         <div class="col-xs-2 col-thin center" ng-switch="hasFavored">
                             <span class="icon-fav" ng-switch-when="1" ng-click="favUser()">收藏</span>
                             <span class="icon-fav-del" ng-switch-when="2" ng-click="delFavUser()">取消收藏</span>
                         </div>
                     </div>
                 </div>
                 <div class="modal-body">
                     <h6 class="text-tips">哪个活儿要Ta？</h6>
                     <p ng-show="missions==''">亲，你还没有发活哦！~</p>
                     <div class="radio" ng-repeat="mission in missions">
                         <label>
                             <input type="radio" name="optionsRadios" ng-model="$parent.missionId" ng-value="mission.mission_id">
                             {{ mission.mission_name }}
                         </label>
                     </div>
                 </div>
                 <div class="modal-footer center">
                     <button type="button" id="modalSubmit" class="btn btn-main" ng-click="select()">发送</button>
                 </div>
             </div>
         </div>
     </div>
  </div>
</div>